import {http} from '../../http'

//删除数据
const deleteData = (params: any) => http.delete('/common/delete', params)

//新增服务名数据
const createService = (params: any) => http.post('/service/create', params)

//提交服务订单
const submitServiceInfo = (params: any) => http.post('/service/wxserviceInfo', params)

//获取服务名数据
const getService = (params: any) => http.get('/service/serviceOptions', params)

//获取服务信息数据
const getServiceInfo = (params: any) => http.get('/service/serviceInfo', params)

//获取科室数据/分类数据
const getDepartment = (params: any) => http.get('/common/department', params)

//提交挂号信息
const submitRegistered = (params: any) => http.post('/service/wxregistered', params)

//获取挂号信息
const getRegistered = (params: any) => http.get('/service/wxregistered', params)

//获取科室数据
const getDepartmentInfo = (params: any) => http.get('/common/departmentInfo', params)

//获取用户上门服务信息数据
const getwxServiceInfo = (params: any) => http.get('/service/wxserviceInfo', params)

//取消用户上门服务信息数据
const cancelServiceInfo = (params: any) => http.put('/service/wxserviceInfo', params)

export default {
    deleteData,
    createService,
    submitServiceInfo,
    getService,
    getServiceInfo,
    getDepartment,
    getDepartmentInfo,
    submitRegistered,
    getwxServiceInfo,
    cancelServiceInfo,
    getRegistered
}